package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 徒有琴
 */
@Controller
@RequestMapping("/a")
public class IndexController {

    @RequestMapping("index.html")
    public String index() {
        System.out.println("aaaa");
        return "redirect:/test.jsp";
    }

    @RequestMapping(value = "test.html", consumes = "application/json")
    public String test() {
        System.out.println("test");
        return "/test.jsp";
    }

}
